<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>06_定位的特殊应用1</title>
    <style>
        /* 需求：想要定位子元素铺满整个父元素 */
        .outer {
            height: 400px;
            background-color: aqua;
            position: relative;
        }
        .inner {
            background-color: blueviolet;
            font-size: 50px;
            padding: 10px;
            border: 10px  solid black;
            position: absolute;
            left: 0px;
            right: 0px;
            top: 0px;
            bottom: 0px;
        }
    </style>
</head>
<body>
    <div class="outer">
        <div class="inner">1</div>
    </div>
</body>
</html>